package com.xxxx.server.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author LT
 * @since 2022-02-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("lecturereverse")
@ApiModel(value="Lecturereverse对象", description="")
public class Lecturereverse implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "预定id")
    private Integer id;

    @ApiModelProperty(value = "讲座id")
    private Integer lectureId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "预定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime reverseDate;

    @ApiModelProperty(value = "讲座信息")
    @TableField(exist = false)//告诉mybatis plus 数据库中没有这个自定义的字段
    private List<Lectureinfo> lectureinfos;


//    @ApiModelProperty(value = "讲座名")
//
//    private String name;
//
//
//    @ApiModelProperty(value = "讲座地址")
//    private String address;
//
//    @ApiModelProperty(value = "讲座座位总数")
//
//    private Integer totalNumbers;
//
//    @ApiModelProperty(value = "座位剩余数量")
//
//    private Integer remainNumbers;
//
//    @ApiModelProperty(value = "开始时间")
//
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
//    private String beginDate;
//
//    @ApiModelProperty(value = "结束时间")
//
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
//    private String endDate;

}
